package cn.stylefeng.guns.modular.gridsystem.temperature.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 开关柜的外体温度
 *
 * @author
 * @date 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)//Lombok注解之一，用于自动生成equals(Object other)和hashCode()方法。
@TableName("biz_temperature_record")
public class BizTemperatureRecord extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 网关code号
     */
    @TableField(value = "gateway_code")
    private String gatewayCode;
    /**
     * 网关id
     */
    @TableField(value = "gateway_id")
    private Integer gatewayId;

    /**
     * 网关通道
     */
    @TableField(value = "gateway_channel")
    private String gatewayChannel;
    /**
     * 设备温度（采集温度+空气误差）
     */
    @TableField(value = "temperature")
    private String temperature;


    @TableField(value = "tape_time")
    private String tapeTime; //采集端的采集时间
    @TableField(value = "device_id")
    private Integer deviceId;
    @TableField(value = "install_location")
    private String installLocation;
    @TableField(value = "max_value")
    private Double maxValue;
    /**
     * 采集温度
     */
    @TableField(value = "collect_temperature")
    private String collectTemperature;

}
